﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using QS.ClassLibrary;
using QS.Logic.Objects;

namespace QS.Logic.Modules
{
    class QShipModule : QPhysicsObject
    {
        private IntVector3 m_ArrayPosition;
        public IntVector3 ArrayPosition
        {
            get
            {
                return m_ArrayPosition;
            }
            set
            {
                m_ArrayPosition = value;
            }
        }

        protected int m_Crew;
        public int Crew
        {
            get
            {
                return m_Crew;
            }
            set
            {
                m_Crew = value;
            }
        }

        protected int m_Energy;
        public int Energy
        {
            get
            {
                return m_Energy;
            }
            set
            {
                m_Energy = value;
            }
        }

        private QShipModule[] m_Neighbors;
        public QShipModule GetNeighbor(QDirection side)
        {
            return m_Neighbors[(int)side];
        }

        public void SetNeighbor(QDirection side, QShipModule module)
        {
            m_Neighbors[(int)side] = module;
        }

        public QShipModule()
        {
            m_Neighbors = new QShipModule[6];
        }
    }
}
